package com.study.dao;

import com.study.model.Order;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: chenhs
 * @date: Created in 6:32 2019/11/28
 **/
public interface OrderDao {


    @Select("SELECT * FROM t_order WHERE 1=1")
    @Results({
            @Result(property = "customerId",  column = "customer_id")
    })
    List<Order> findAll();

}
